package com.my.house.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.beans.factory.annotation.Autowired;
import lombok.extern.slf4j.Slf4j;
import com.my.house.common.ApiResult;
import com.my.house.domain.FeeRecord;
 import com.my.house.service.FeeRecordService;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 水电费房租收费记录表 前端控制器
 * </p>
 *
 * @author yangll
 * @since 2025-02-08
 */
@Slf4j
@RestController
@RequestMapping("/api/fee-record")
public class FeeRecordController {
    @Autowired
    private FeeRecordService feeRecordService;

    @GetMapping("/find-by-id")
    public ApiResult<FeeRecord> findById(Long id) {
        log.info("/fee-record/find-by-id, id={}", id);
        return ApiResult.ok(feeRecordService.getById(id));
    }
}
